package com.jrx.anytxn.param.service.system.impl;

import com.jrx.anytxn.param.mapper.ext.ExtBtBatchStatusMapper;
import com.jrx.anytxn.param.service.system.IBtBatchStatusService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

@Service
public class BtBatchStatusServiceImpl implements IBtBatchStatusService {

    @Resource
    private ExtBtBatchStatusMapper extBtBatchStatusMapper;

    @Override
    public int countByJobNameAndBusiDateAndTenantId(String jobName, Date businessDate, String tenantId){
        return extBtBatchStatusMapper.selectByBusiDateAndJobName(businessDate,jobName,tenantId);
    }

    @Override
    public int countByJobNameAndBusiDateAndStatus(String jobName, Date businessDate, String tenantId, String batchStatus){
        return extBtBatchStatusMapper.selectByBusiDateAndJobNameAndStatus(businessDate,jobName,tenantId, batchStatus);
    }
}
